]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Adjust spacing
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 22 Oct 2020 22:49:03 +0000 (00:49 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Feb 2021 20:06:13 +0000 (21:06 +0100)
Icons are always visible, so in order to not have overlays overlap
with other previews, we need to consider the sum of top- and border
oversizes rather than the maximum.

https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/81

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1605>

js/ui/workspace.js

index a93ec27264ccb1691e4c0f98b52b956d1b196e82..cb3c212eea0d3772a5585f75aab88a195225e5c4 100644 (file)
@@ -464,7 +464,7 @@ var WorkspaceLayout = GObject.registerClass({
         const [leftOversize, rightOversize] = window.chromeWidths();
 
         if (rowSpacing)
-            rowSpacing += Math.max(topOversize, bottomOversize);
+            rowSpacing += topOversize + bottomOversize;
         if (colSpacing)
             colSpacing += Math.max(leftOversize, rightOversize);